.class public Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;
.super Lcom/estrongs/android/pop/esclasses/ESActivity;
.source "CreateOAuthNetDisk.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$d;,
        Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$c;
    }
.end annotation


# static fields
.field private static q:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk; = null

.field public static r:I = 0x1

.field public static s:I = 0x2

.field public static t:I = 0x3

.field public static u:I = 0x4

.field public static v:I = 0x5

.field public static w:I = 0x7


# instance fields
.field private d:Ljava/lang/String;

.field private e:Z

.field private f:Ljava/lang/String;

.field private g:Landroid/webkit/WebView;

.field private h:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$d;

.field private i:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$c;

.field private j:Landroid/view/View;

.field private k:Landroid/widget/ProgressBar;

.field private l:Ljava/lang/String;

.field m:Z

.field n:Z

.field o:Z

.field private p:Landroid/os/Handler;
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "HandlerLeak"
        }
    .end annotation
.end field


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method public constructor <init>()V
    .locals 3

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-object v0, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->d:Ljava/lang/String;

    const/4 v1, 0x0

    .line 3
    iput-boolean v1, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->e:Z

    .line 4
    iput-object v0, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->f:Ljava/lang/String;

    .line 5
    iput-object v0, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->g:Landroid/webkit/WebView;

    .line 6
    new-instance v2, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$d;

    invoke-direct {v2, p0, v0}, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$d;-><init>(Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$a;)V

    iput-object v2, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->h:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$d;

    .line 7
    new-instance v2, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$c;

    invoke-direct {v2, p0, v0}, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$c;-><init>(Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$a;)V

    iput-object v2, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->i:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$c;

    .line 8
    iput-object v0, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->j:Landroid/view/View;

    .line 9
    iput-object v0, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->k:Landroid/widget/ProgressBar;

    .line 10
    iput-object v0, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->l:Ljava/lang/String;

    .line 11
    iput-boolean v1, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->m:Z

    .line 12
    iput-boolean v1, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->n:Z

    .line 13
    iput-boolean v1, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->o:Z

    .line 14
    new-instance v0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$b;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$b;-><init>(Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;)V

    iput-object v0, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->p:Landroid/os/Handler;

    return-void
.end method

.method public static B()Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;
    .locals 1

    .line 1
    sget-object v0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->q:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;

    return-object v0
.end method

.method static synthetic a(Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;)Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$c;
    .locals 0

    .line 3
    iget-object p0, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->i:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$c;

    return-object p0
.end method

.method static synthetic a(Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    .locals 0

    .line 2
    invoke-direct {p0, p1, p2}, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method private a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    .locals 7

    const-string v0, "\\?"

    .line 22
    invoke-virtual {p1, v0}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v0

    .line 23
    array-length v1, v0

    const/4 v2, 0x2

    if-eq v1, v2, :cond_0

    const-string v0, "#"

    .line 24
    invoke-virtual {p1, v0}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v0

    .line 25
    :cond_0
    array-length p1, v0

    if-ne p1, v2, :cond_2

    const/4 p1, 0x1

    .line 26
    aget-object v0, v0, p1

    const-string v1, "&"

    invoke-virtual {v0, v1}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v0

    .line 27
    array-length v1, v0

    const/4 v3, 0x0

    const/4 v4, 0x0

    :goto_0
    if-ge v4, v1, :cond_2

    aget-object v5, v0, v4

    const-string v6, "="

    .line 28
    invoke-virtual {v5, v6}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v5

    .line 29
    array-length v6, v5

    if-ne v6, v2, :cond_1

    aget-object v6, v5, v3

    invoke-virtual {v6, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_1

    .line 30
    aget-object p1, v5, p1

    return-object p1

    :cond_1
    add-int/lit8 v4, v4, 0x1

    goto :goto_0

    :cond_2
    const/4 p1, 0x0

    return-object p1
.end method

.method static synthetic a(Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;ZI)V
    .locals 0

    .line 4
    invoke-direct {p0, p1, p2}, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->a(ZI)V

    return-void
.end method

.method private a(ZI)V
    .locals 3

    .line 10
    iget-boolean v0, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->n:Z

    if-eqz v0, :cond_1

    .line 11
    sget-object v0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->q:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;

    if-eqz v0, :cond_0

    .line 12
    invoke-virtual {v0}, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->A()V

    :cond_0
    const/4 v0, 0x0

    .line 13
    iput-boolean v0, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->n:Z

    .line 14
    :cond_1
    iget-object v0, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->g:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getWidth()I

    move-result v0

    .line 15
    iget-object v1, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->g:Landroid/webkit/WebView;

    invoke-virtual {v1}, Landroid/webkit/WebView;->getContentHeight()I

    move-result v1

    int-to-float v1, v1

    iget-object v2, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->g:Landroid/webkit/WebView;

    invoke-virtual {v2}, Landroid/webkit/WebView;->getScale()F

    move-result v2

    mul-float v1, v1, v2

    float-to-int v1, v1

    .line 16
    iget-object v2, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->g:Landroid/webkit/WebView;

    invoke-virtual {v2}, Landroid/webkit/WebView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v2

    if-eqz p1, :cond_2

    .line 17
    invoke-static {p0}, Lcom/estrongs/android/pop/utils/t;->b(Landroid/content/Context;)I

    move-result p1

    mul-int/lit8 p1, p1, 0x3

    div-int/lit8 p1, p1, 0x4

    iput p1, v2, Landroid/view/ViewGroup$LayoutParams;->height:I

    .line 18
    invoke-static {p0}, Lcom/estrongs/android/pop/utils/t;->e(Landroid/content/Context;)I

    move-result p1

    mul-int/lit8 p1, p1, 0x3

    div-int/lit8 p1, p1, 0x4

    iput p1, v2, Landroid/view/ViewGroup$LayoutParams;->width:I

    goto :goto_0

    :cond_2
    if-le v1, p2, :cond_4

    .line 19
    iput p2, v2, Landroid/view/ViewGroup$LayoutParams;->height:I

    int-to-float p1, v0

    int-to-float v0, v1

    div-float/2addr p1, v0

    const v0, 0x3f28f5c3    # 0.66f

    cmpg-float v1, p1, v0

    if-gez v1, :cond_3

    const p1, 0x3f28f5c3    # 0.66f

    :cond_3
    int-to-float p2, p2

    mul-float p2, p2, p1

    float-to-int p1, p2

    .line 20
    iput p1, v2, Landroid/view/ViewGroup$LayoutParams;->width:I

    .line 21
    :cond_4
    :goto_0
    iget-object p1, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->g:Landroid/webkit/WebView;

    invoke-virtual {p1, v2}, Landroid/webkit/WebView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;Ljava/lang/String;)Z
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->d(Ljava/lang/String;)Z

    move-result p0

    return p0
.end method

.method static synthetic b(Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;)Ljava/lang/String;
    .locals 0

    .line 2
    iget-object p0, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->d:Ljava/lang/String;

    return-object p0
.end method

.method static synthetic b(Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;Ljava/lang/String;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->e(Ljava/lang/String;)V

    return-void
.end method

.method static synthetic c(Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;)Landroid/os/Handler;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->p:Landroid/os/Handler;

    return-object p0
.end method

.method static synthetic c(Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;Ljava/lang/String;)Z
    .locals 0

    .line 2
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->c(Ljava/lang/String;)Z

    move-result p0

    return p0
.end method

.method private c(Ljava/lang/String;)Z
    .locals 5

    if-eqz p1, :cond_3

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->d:Ljava/lang/String;

    const-string v1, "pcs"

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    const/4 v1, 0x1

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    .line 4
    invoke-static {p0, p1, v1, v0, v0}, Lcom/estrongs/android/ui/pcs/j;->a(Landroid/content/Context;Ljava/lang/String;ZLjava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 5
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p1

    xor-int/2addr p1, v1

    return p1

    .line 6
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->d:Ljava/lang/String;

    invoke-static {v0, p1}, Les/j30;->b(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    if-eqz p1, :cond_3

    .line 7
    iget-object v0, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->d:Ljava/lang/String;

    const-string v2, "fake"

    const-string v3, "/"

    invoke-static {v0, p1, v2, v3}, Lcom/estrongs/android/util/h0;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 8
    iget-boolean v2, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->e:Z

    if-eqz v2, :cond_1

    iget-object v2, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->f:Ljava/lang/String;

    if-eqz v2, :cond_1

    .line 9
    invoke-static {v2}, Lcom/estrongs/android/util/h0;->n0(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 10
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v3

    iget-object v4, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->f:Ljava/lang/String;

    invoke-virtual {p1, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    xor-int/2addr v2, v1

    invoke-virtual {v3, v4, v2}, Lcom/estrongs/android/pop/l;->c(Ljava/lang/String;Z)V

    .line 11
    :cond_1
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v2

    invoke-virtual {v2, v0, p1}, Lcom/estrongs/android/pop/l;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 12
    iget-boolean p1, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->o:Z

    if-eqz p1, :cond_2

    .line 13
    new-instance p1, Landroid/content/Intent;

    invoke-direct {p1}, Landroid/content/Intent;-><init>()V

    const-string v2, "path"

    .line 14
    invoke-virtual {p1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const/4 v0, -0x1

    .line 15
    invoke-virtual {p0, v0, p1}, Landroid/app/Activity;->setResult(ILandroid/content/Intent;)V

    .line 16
    invoke-virtual {p0}, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->finish()V

    :cond_2
    return v1

    :cond_3
    const/4 p1, 0x0

    return p1
.end method

.method static synthetic d(Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;)Landroid/webkit/WebView;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->g:Landroid/webkit/WebView;

    return-object p0
.end method

.method static synthetic d(Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;Ljava/lang/String;)Ljava/lang/String;
    .locals 0

    .line 2
    iput-object p1, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->l:Ljava/lang/String;

    return-object p1
.end method

.method private d(Ljava/lang/String;)Z
    .locals 1

    if-nez p1, :cond_0

    const/4 p1, 0x0

    return p1

    :cond_0
    const-string v0, "www.dropbox.com"

    .line 3
    invoke-virtual {p1, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result p1

    return p1
.end method

.method static synthetic e(Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;)Ljava/lang/String;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->l:Ljava/lang/String;

    return-object p0
.end method

.method private e(Ljava/lang/String;)V
    .locals 3

    if-nez p1, :cond_0

    return-void

    :cond_0
    const-string v0, "://"

    .line 2
    invoke-virtual {p1, v0}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v0

    if-lez v0, :cond_1

    add-int/lit8 v0, v0, 0x3

    .line 3
    invoke-virtual {p1, v0}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object p1

    :cond_1
    const-string v0, "www.estrongs.com"

    .line 4
    invoke-virtual {p1, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_3

    const-string v0, "localhost"

    invoke-virtual {p1, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result p1

    if-nez p1, :cond_3

    sget-object p1, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->q:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;

    if-eqz p1, :cond_3

    .line 5
    iget-boolean v0, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->m:Z

    if-eqz v0, :cond_2

    const/4 p1, 0x1

    .line 6
    iput-boolean p1, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->n:Z

    goto :goto_0

    .line 7
    :cond_2
    invoke-virtual {p1}, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->A()V

    .line 8
    :cond_3
    :goto_0
    iget-object p1, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->p:Landroid/os/Handler;

    sget v0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->w:I

    invoke-virtual {p1, v0}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object p1

    .line 9
    iget-object v0, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->p:Landroid/os/Handler;

    const-wide/16 v1, 0xc8

    invoke-virtual {v0, p1, v1, v2}, Landroid/os/Handler;->sendMessageDelayed(Landroid/os/Message;J)Z

    return-void
.end method

.method static synthetic f(Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;)Landroid/widget/ProgressBar;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->k:Landroid/widget/ProgressBar;

    return-object p0
.end method

.method static synthetic g(Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;)Landroid/view/View;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->j:Landroid/view/View;

    return-object p0
.end method


# virtual methods
.method public A()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->p:Landroid/os/Handler;

    sget v1, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->t:I

    invoke-virtual {v0, v1}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v0

    .line 2
    iget-object v1, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->p:Landroid/os/Handler;

    invoke-virtual {v1, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    return-void
.end method

.method public a(Ljava/util/Properties;)V
    .locals 2

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->d:Ljava/lang/String;

    const-string v1, "box"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    const-string v0, "auth_token"

    .line 6
    invoke-virtual {p1, v0}, Ljava/util/Properties;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 7
    iget-object v0, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->p:Landroid/os/Handler;

    sget v1, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->r:I

    invoke-virtual {v0, v1}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v0

    .line 8
    iput-object p1, v0, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 9
    iget-object p1, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->p:Landroid/os/Handler;

    invoke-virtual {p1, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    :cond_0
    return-void
.end method

.method public finish()V
    .locals 1

    .line 1
    invoke-super {p0}, Landroid/app/Activity;->finish()V

    const/4 v0, 0x0

    .line 2
    invoke-virtual {p0, v0, v0}, Landroid/app/Activity;->overridePendingTransition(II)V

    return-void
.end method

.method public onConfigurationChanged(Landroid/content/res/Configuration;)V
    .locals 1

    .line 1
    invoke-super {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onConfigurationChanged(Landroid/content/res/Configuration;)V

    .line 2
    new-instance p1, Landroid/util/DisplayMetrics;

    invoke-direct {p1}, Landroid/util/DisplayMetrics;-><init>()V

    .line 3
    invoke-virtual {p0}, Landroid/app/Activity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v0

    invoke-interface {v0}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/view/Display;->getMetrics(Landroid/util/DisplayMetrics;)V

    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 5

    .line 1
    invoke-super {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onCreate(Landroid/os/Bundle;)V

    const p1, 0x7f0c0296

    .line 2
    invoke-super {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESActivity;->setContentView(I)V

    .line 3
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object p1

    invoke-virtual {p1}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object p1

    const/4 v0, 0x0

    if-nez p1, :cond_0

    const/4 p1, 0x0

    .line 4
    invoke-virtual {p0, v0, p1}, Landroid/app/Activity;->setResult(ILandroid/content/Intent;)V

    .line 5
    invoke-virtual {p0}, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->finish()V

    return-void

    :cond_0
    const-string v1, "nettype"

    .line 6
    invoke-virtual {p1, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->d:Ljava/lang/String;

    const-string v1, "editServer"

    .line 7
    invoke-virtual {p1, v1, v0}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z

    move-result v1

    iput-boolean v1, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->e:Z

    const-string v1, "originalPath"

    .line 8
    invoke-virtual {p1, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->f:Ljava/lang/String;

    const-string v1, "rest_upload"

    .line 9
    invoke-virtual {p1, v1}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z

    move-result p1

    iput-boolean p1, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->o:Z

    .line 10
    iget-object p1, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->d:Ljava/lang/String;

    const-string v1, "gdrive"

    invoke-virtual {v1, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    const v1, 0x7f09074c

    .line 11
    invoke-virtual {p0, v1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/webkit/WebView;

    iput-object v1, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->g:Landroid/webkit/WebView;

    .line 12
    invoke-virtual {v1}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v1

    const/4 v2, 0x1

    .line 13
    invoke-virtual {v1, v2}, Landroid/webkit/WebSettings;->setJavaScriptEnabled(Z)V

    if-eqz p1, :cond_1

    const-string v3, "Mozilla/5.0 Google"

    .line 14
    invoke-virtual {v1, v3}, Landroid/webkit/WebSettings;->setUserAgentString(Ljava/lang/String;)V

    .line 15
    :cond_1
    iget-object v3, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->g:Landroid/webkit/WebView;

    iget-object v4, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->h:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$d;

    invoke-virtual {v3, v4}, Landroid/webkit/WebView;->setWebViewClient(Landroid/webkit/WebViewClient;)V

    .line 16
    iget-object v3, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->g:Landroid/webkit/WebView;

    iget-object v4, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->i:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$c;

    invoke-virtual {v3, v4}, Landroid/webkit/WebView;->setWebChromeClient(Landroid/webkit/WebChromeClient;)V

    .line 17
    iget-object v3, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->d:Ljava/lang/String;

    const-string v4, "pcs"

    invoke-virtual {v4, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_2

    if-eqz p1, :cond_3

    .line 18
    :cond_2
    invoke-static {}, Lcom/estrongs/android/util/o0;->d()Z

    move-result v3

    if-nez v3, :cond_4

    sget-boolean v3, Lcom/estrongs/android/pop/j;->M:Z

    if-eqz v3, :cond_3

    goto :goto_0

    :cond_3
    const/4 v3, 0x0

    goto :goto_1

    :cond_4
    :goto_0
    const/4 v3, 0x1

    :goto_1
    iput-boolean v3, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->m:Z

    if-eqz v3, :cond_5

    .line 19
    invoke-virtual {v1, v2}, Landroid/webkit/WebSettings;->setUseWideViewPort(Z)V

    .line 20
    invoke-virtual {v1, v2}, Landroid/webkit/WebSettings;->setLoadWithOverviewMode(Z)V

    if-eqz p1, :cond_5

    .line 21
    iget-object p1, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->g:Landroid/webkit/WebView;

    const/16 v2, 0x14

    invoke-virtual {p1, v2}, Landroid/webkit/WebView;->setInitialScale(I)V

    .line 22
    :cond_5
    invoke-virtual {v1, v0}, Landroid/webkit/WebSettings;->setSavePassword(Z)V

    .line 23
    invoke-virtual {v1, v0}, Landroid/webkit/WebSettings;->setSaveFormData(Z)V

    .line 24
    invoke-static {p0}, Landroid/webkit/CookieSyncManager;->createInstance(Landroid/content/Context;)Landroid/webkit/CookieSyncManager;

    .line 25
    invoke-static {}, Landroid/webkit/CookieSyncManager;->getInstance()Landroid/webkit/CookieSyncManager;

    move-result-object p1

    invoke-virtual {p1}, Landroid/webkit/CookieSyncManager;->startSync()V

    .line 26
    invoke-static {}, Landroid/webkit/CookieManager;->getInstance()Landroid/webkit/CookieManager;

    move-result-object p1

    const-string v0, "utf-8"

    .line 27
    invoke-virtual {v1, v0}, Landroid/webkit/WebSettings;->setDefaultTextEncodingName(Ljava/lang/String;)V

    const v0, 0x7f09015f

    .line 28
    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ProgressBar;

    iput-object v0, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->k:Landroid/widget/ProgressBar;

    const v0, 0x7f09071b

    .line 29
    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->j:Landroid/view/View;

    .line 30
    new-instance v0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$a;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$a;-><init>(Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;)V

    .line 31
    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    .line 32
    invoke-virtual {p1}, Landroid/webkit/CookieManager;->removeAllCookie()V

    .line 33
    sput-object p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->q:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;

    return-void
.end method

.method protected onDestroy()V
    .locals 1

    const/4 v0, 0x0

    .line 1
    sput-object v0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->q:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;

    .line 2
    invoke-super {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onDestroy()V

    return-void
.end method

.method protected w()V
    .locals 1

    const/4 v0, 0x1

    .line 1
    invoke-virtual {p0, v0}, Landroid/app/Activity;->requestWindowFeature(I)Z

    return-void
.end method
